﻿<html>
	<head>
		<meta http-equiv="content-type" content="text/xml; charset=UTF-8">
        <title>问题框</title>
		<script language="javascript">
		function makecid(x)
		{
		    var form2=document.ques_tag.pid.options.length;
		    var ques_tagl=new Array(form2);
		    for(i=0;i<form2;i++)
		        ques_tagl[i]=new Array();
		    var cid=document.ques_tag.cid;
			ques_tagl[0][0]=new Option("OO","1");
		    ques_tagl[0][1]=new Option("企业应用","2");
		    ques_tagl[0][2]=new Option("JBoss","3");
		    ques_tagl[1][0]=new Option("EXT","4");
		    ques_tagl[1][1]=new Option("DWR","5");
		    ques_tagl[1][2]=new Option("Flex","8");
		    ques_tagl[1][3]=new Option("CSS","9");
		    ques_tagl[2][0]=new Option("PHP","6");
		    ques_tagl[2][1]=new Option("C++ ","7");
		    for(m=cid.options.length-1;m>0;m--)
		  		cid.options[m]=null;
		    for(j=0;j<ques_tagl[x].length;j++)
		    {
		   		cid.options[j]=new Option(ques_tagl[x][j].text,ques_tagl[x][j].value)
		    }
		    cid.options[0].selected=true;
		}
		</script>
	</head>
	<body>
		<table align = "center">
		<form  name = "ques_tag" action = "http://localhost/CodeIgniter/index.php/ask_system/ask_frame_model" method = "post">
			<input type = "hidden" name = "uid" value = "1">     <!--这里接受post过来的用户id，调试状态 ，姑且设为 1 -->
			您的提问：<br>
			<input type = "text" name = "title" size = "88"><br>
			请详细填写您的问题说明：<br>
			<?php
		        include("fckeditor/fckeditor.php") ;
			    $oFCKeditor = new FCKeditor('content') ;
				$oFCKeditor->BasePath = '../../fckeditor/';
				$oFCKeditor->ToolbarSet='Default' ;
				$oFCKeditor->Width = '565' ; 
				$oFCKeditor->Height = '400' ; 
				$oFCKeditor->Create() ;
			?>
			</table>
			<table align = "center">
				<tr>
					<td>
						问题标签：
    					<select name = "pid" size = "1" onchange = "makecid(options.selectedIndex)">
    						<option value = "1" selected = "selected">Java</option>
						    <option value = "2">AJAX</option>
						    <option value = "3">综合技术</option>
    					</select>
						<select name = "cid">
							<option value = "1" selected="selected">OO</option>
						    <option value = "2">企业应用</option>
						    <option value = "3">JBoss</option>
						</select>
				        您的积分：
						<?php 
							$this->load->database(); 
							$result = mysql_query("SELECT mark FROM ci_ask_user WHERE id = '1' ");//这里接受post过来的用户id，调试状态 ，姑且设为 1 
							$row = mysql_fetch_array($result);
							echo $row['mark'];
						?>分
						悬赏分： 
						<select name = "price">
							<option value = "5">5分</option>
							<option value = "10">10分</option>
							<option value = "15">15分</option>
							<option value = "20">20分</option>
							<option value = "25">25分</option>
							<option value = "30">30分</option>
						</select>
					</td>
					<td>
						<input type = "submit" value = "提交">
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

